Fluent Assertions Documentation
FluentAssertions Namespace / AssertionExtensions Class / Should Method / Should<TAssertions>(DateTimeAssertions<TAssertions>) Method
In This Topic
    Should<TAssertions>(DateTimeAssertions<TAssertions>) Method
    In This Topic
    You are asserting the AndConstraint<TParent> itself. Remove the Should() method directly following And.
    Syntax
    [Extension()]
    [Obsolete("You are asserting the 'AndConstraint' itself. Remove the 'Should()' method directly following 'And'", true)]
    public static void Should<TAssertions>( 
       DateTimeAssertions<TAssertions> _
    )
    where TAssertions: DateTimeAssertions<TAssertions>

    Parameters

    _

    Type Parameters

    TAssertions
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also